using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Domain.Hr;

/// <summary>
/// 人力-工作汇报
/// </summary>
[SugarTable("hr_work_report")]
public class HrWorkReport:Entity
{
    /// <summary>
    /// 员工编号
    /// </summary>
    [Required]
    public long EmployeeId { get; set; }
    
    /// <summary>
    /// 员工
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(EmployeeId))]
    public HrEmployee EmployeeObj { get; set; }

    /// <summary>
    /// 汇报类型(1/日报2周报/3月报)
    /// </summary>
    [Required]
    public int ReportType { get; set; } = 1;

    /// <summary>
    /// 接收人编号
    /// </summary>
    [Required]
    public long ReceiveId { get; set; }
    
    /// <summary>
    /// 接收人
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(ReceiveId))]
    public HrEmployee ReceiveObj { get; set; }

    /// <summary>
    /// 进入工作内容
    /// </summary>
    [Required]
    public string Content { get; set; }

    /// <summary>
    /// 明日计划
    /// </summary>
    public string Plan { get; set; }

    /// <summary>
    /// 附件
    /// </summary>
    public string Attachment { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string UpdateUser { get; set; }


}